package com.louis.autoFill.controller;

import com.louis.autoFill.service.UserService;
import com.louis.autoFill.service.impl.UserServiceImpl;

/**
 * @author XRY
 * @date 2023年06月25日9:09
 */
public class UserController {
    private UserService userService;
    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void addUser(){
        System.out.println("我是controller");
        //调用service的方法
        userService.addUserService();
        //原始方法：Controller调用service
//        UserService userService = new UserServiceImpl();
//        userService.addUserService();
    }
}
